<?php
session_start() ;
if(!isset($_SESSION["login"]) || $_SESSION["login"] == "")
{   
  header("Location: index.php?error=4") ;
}?>

<html>
<head>
<title>Administration</title>
 <link rel="stylesheet" type="text/css" href="style.css" >  
</head>

<body>
<?php require("menu.php");
require("fonctions.php");
$code=$_GET["error"];
?>
<p class="titre">Ajouter un nouveau utilisateur</p>
<br></br>
<form action="controler.php?action=new_user" method=post>
<table  width="500">

<tr>
	<td>Nom</td><td><input type="text" name="nom"></td>
</tr>
<tr>
	<td>Pr&eacute;nom</td><td><input type="text" name="prenom"></td>
</tr>

<tr>
	<td>Profil</td><td>
	<select name="profil">
		<option value="0"></option>
		<option value="LVDC">LVDC</option>
		<option value="RT">Renault Trucks</option>
		<option value="MAN">Manager</option>
		<option value="RT">RT</option>
		<option value="RQ">Responsable qualit&eacute;</option>
		<option value="DIS">&eacute;tablissement</option>
	</select></td>
</tr>
<tr>
	<td>Identifiant</td><td><input type="text" name="login"></td>
</tr>
<tr>
	<td>Mot de passe</td><td><input type="text" name="password"></td>
</tr>
<tr>
	<td colspan=2 align=center><input type="submit" name="valider" value="Cr&eacute;er utilisateur"></td>
</tr>
</table>
</form>

</body>

</html>
